{{Strip}}<!-- Modal -->
{{if not .HeadTitle}}
<div class="modal{{if .Animate}} {{.Animate}}{{else}} fade{{end}}" id="{{.Id}}" tabindex="-1" role="dialog">
	<div class="modal-dialog">
	  <div class="modal-content">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		</div>
        
		<div class="modal-body">
     {{if .Custom}}
     		{{.Content|T|ToHTML}}
     {{else}}
			<div class="text-center">
				<div class="i-circle {{if .Type}}{{.Type}}{{else}}primary{{end}}"><i class="fa fa-{{if .Type}}{{.Type}}{{else}}primary{{end}}"></i></div>
				{{if .Title}}<h4>{{.Title|T|ToHTML}}</h4>{{end}}
				<p>{{.Content|T|ToHTML}}</p>
			</div>
      {{end}}
		</div>
		<div class="modal-footer">
			{{if .HelpText}}
			<div class="pull-left">{{.HelpText|T|ToHTML}}</div>
			{{end}}
      {{range $k, $v := .ExtButtons}}
		  <button type="button" class="btn btn-default" data-dismiss="modal"{{range $bk, $bv := $v.Attributes}} {{$bv.Attr}}="{{$bv.Value}}"{{end}}>{{$v.Text}}</button>
      {{end}}
		  <button type="button" class="btn btn-default" data-dismiss="modal">{{"取消"|T}}</button>
		  <button type="button" class="btn btn-{{if .Type}}{{.Type}}{{else}}primary{{end}}" data-dismiss="modal">{{"确定"|T}}</button>
		</div>
	  </div><!-- /.modal-content -->
	
	</div><!-- /.modal-dialog -->
</div><!-- /.modal -->

{{else}}

<div class="md-modal {{if eq .ContentType "blackform"}}md-dark custom-width{{else}}colored-header{{end}} {{.Type}}{{if .Animate}} {{.Animate}}{{else}} md-effect-10{{end}}" id="{{.Id}}">
    <div class="md-content">
      <div class="modal-header">
        <h3>{{.HeadTitle|T|ToHTML}}</h3>
        <button type="button" class="close md-close" data-dismiss="modal" aria-hidden="true">&times;</button>
      </div>
      <div class="modal-body{{if or (eq .ContentType "blackform") (eq .ContentType "form")}} form{{end}}">
				{{if .Custom}}
            {{.Content|T|ToHTML}}
        {{else}}
        <div class="text-center">
          <div class="i-circle {{if .Type}}{{.Type}}{{else}}primary{{end}}"><i class="fa fa-{{if .Type}}{{.Type}}{{else}}primary{{end}}"></i></div>
         	{{if .Title}}<h4>{{.Title|T|ToHTML}}</h4>{{end}}
          <p>{{.Content|T|ToHTML}}</p>
        </div>
				{{end}}
      </div>
      <div class="modal-footer">
			{{if .HelpText}}
			<div class="pull-left">{{.HelpText|T|ToHTML}}</div>
			{{end}}
			{{range $k, $v := .ExtButtons}}
		  <button type="button" class="btn btn-default" data-dismiss="modal"{{range $bk, $bv := $v.Attributes}} {{$bv.Attr}}="{{$bv.Value}}"{{end}}>{{$v.Text}}</button>
      {{end}}
        <button type="button" class="btn btn-default btn-flat md-close" data-dismiss="modal">{{"取消"|T}}</button>
        <button type="button" class="btn btn-{{if .Type}}{{.Type}}{{else}}primary{{end}} btn-flat md-close" data-dismiss="modal">{{"确定"|T}}</button>
      </div>
    </div>
</div>

{{end}}
{{/Strip}}